package com.itheima.text6;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class TCPServer {
    public static void main(String[] args) throws IOException {
        ServerSocket socket = new ServerSocket(10006);


        while (true){

            Socket accept = socket.accept();

        new Thread(new ServerThread(accept)).start();
        }
    }
}
